/*
 * strstr.c
 *
 *  Created on: 2012-8-30
 *      Author: miracle
 */
#include"all.h"
const char *strstr(const char* string, const char*strCharSet){
		int i = 0;
		int j = 0;
	for(i = 0; string[i] != '\0'; i++){
				j = 0;
				int temp = i;
				if(string[i] == strCharSet[j]){
					while(string[i] == strCharSet[j]){
						if(strCharSet[j+1] == '\0'){
							return &string[i+1];
						}
						i++;
						j++;
					}
					i = temp;
				}
	}
	return NULL;
}

